home *** CD-ROM | disk | FTP | other *** search
/ New Masters of Flash / New Masters of Flash.iso / pc / MOVIES / 14.dir / 00061_Text_text05.txt < prev    next >
Text File  |  2000-10-01  |  458b  |  11 lines

  1. Next, create a new keyframe in the timeline of your movie and label it Move_x. Add this script to the keyframe:
  2.  
  3. Then I modified the code in the Move_all keyframe so that it changes the properties of the parent clip denoted by the variable target.
  4.  
  5. x = getProperty(target,_x);
  6. x_speed=(1-damp)*x_speedΓÇö(xΓÇöx_def)*stiff + brown*(random(20)-10)/10;
  7. x = x + x_speed;
  8. setProperty(target,_x)=x;
  9.  
  10. Note that only the first and last lines have changed.
  11.